/**
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY. 
 * See the GNU General Public License for more details.
 * 
 * Copyright (C) 2011 CellObject.net
 */
package net.cellobject.javacodeformatter.editor;

/**
 * A superclass for all property model objects.
 */
public abstract class PropertyElement {
	public static final PropertyElement[] NO_CHILDREN = {};

	private final PropertyElement parent;

	public PropertyElement(final PropertyElement parent) {
		this.parent = parent;
	}

	public PropertyElement getParent() {
		return parent;
	}

	public abstract PropertyElement[] getChildren();

	public abstract void removeFromParent();
}
